/**
 * Copyright  (c) 2009-2013 XLab,  Org. 
 * All  rights  reserved. 
 */
package org.xlab.baseframework.system;

/**
 * 用于定义系统常量
 * 
 * @author MaKuBEX Email:makubexnet@gmail.com
 * @version 1.0.0 Sep 6, 2010
 * @since 1.0.0
 */
public interface Declare {
	
	/**
	 * 百分号
	 */
	public static final String PERCENTAGE = "%";
	
	/**
	 * 100的字符串常量
	 */
	public static final String HUNDRED = "100";
	
	/**
	 * 100%的字符串常量
	 */
	public static final String HUNDRED_PERCENT = HUNDRED + PERCENTAGE;
	
	/**
	 * 空格常量
	 */
	public static final String SPACE = " ";

	/**
	 * 冒号常量
	 */
	public static final String RISK = ":";

	/**
	 * 减号常量
	 */
	public static final String MINUS = "-";

	/**
	 * 分号常量
	 */
	public static final String SEMICOLON = ";";

	/**
	 * 左括号
	 */
	public static final String LEFT_PARENTHESES = "(";

	/**
	 * 右括号
	 */
	public static final String RIGHT_PARENTHESES = ")";

	/**
	 * 逗号常量
	 */
	public static final String COMMA = ",";

	/**
	 * 等于号常量
	 */
	public static final String EQUAL = "=";

	/**
	 * 双引号常量
	 */
	public static final String QUOTATION = "\"";

	/**
	 * 斜线
	 */
	public static final String SLASH = "/";

	/**
	 * 双斜线
	 */
	public static final String DOUBLESLASH = SLASH + SLASH;

	/**
	 * 反斜线
	 */
	public static final String BACKLASH = "\\";

	/**
	 * 点
	 */
	public static final String DOT = ".";

	/**
	 * 双反斜线
	 */
	public static final String DOUBLEBACKLASH = BACKLASH + BACKLASH;

	/**
	 * 单引号
	 */
	public static final String SINGLE_QUOTES = "'";

	/**
	 * 下划线
	 */
	public static final String UNDERLINE = "_";

	/**
	 * 双引号
	 */
	public static final String DOULBE_QUOTES = "\"";

	public static final String GREATER = ">";
	public static final String GREATER_EQUAL = GREATER + EQUAL;
	public static final String LESS = "<";
	public static final String LESS_EQUAL = LESS + EQUAL;

	/**
	 * 日期分隔常量
	 */
	public static final String SYSTEM_DATE_SEPTATOR = "-";

	public static final String SQL_STATEMENT_PERCENTAGE = PERCENTAGE;
	public static final String SQL_STATEMENT_SELECT = "select" + SPACE;
	public static final String SQL_STATEMENT_FROM = SPACE + "from" + SPACE;
	public static final String SQL_STATEMENT_WHERE = SPACE + "where" + SPACE;
	public static final String SQL_STATEMENT_AND = SPACE + "and" + SPACE;
	public static final String SQL_STATEMENT_OR = SPACE + "or" + SPACE;
	public static final String SQL_STATEMENT_AS = SPACE + "as" + SPACE;
	public static final String SQL_STATEMENT_IN = SPACE + "in" + SPACE;
	public static final String SQL_STATEMENT_IS = SPACE + "is" + SPACE;
	public static final String SQL_STATEMENT_NOT = SPACE + "not" + SPACE;
	public static final String SQL_STATEMENT_NULL = SPACE + "null" + SPACE;
	public static final String SQL_STATEMENT_LIKE = SPACE + "like" + SPACE;
	public static final String SQL_STATEMENT_CALL = "call" + SPACE;
	public static final String SQL_STATEMENT_ASTERISK = "*";
	public static final String SQL_STATEMENT_LEFT_BRACE = "{";
	public static final String SQL_STATEMENT_RIGHT_BRACE = "}";
	public static final String SQL_STATEMENT_ROWNUMBER = "rownum" + SPACE;
	public static final String SQL_STATEMENT_DATEFORMAT = "yyyy"
			+ SYSTEM_DATE_SEPTATOR + "mm" + SYSTEM_DATE_SEPTATOR
			+ "dd hh24:mi:ss";

	/**
	 * 系统中的长日期格式
	 */
	public static final String SYSTEM_LONG_DATE_FORMAT = "yyyy"
			+ SYSTEM_DATE_SEPTATOR + "MM" + SYSTEM_DATE_SEPTATOR + "dd";

	/**
	 * 系统中的长时间格式
	 */
	public static final String SYSTEM_LONG_TIME_FORMAT = "HH" + RISK + "mm"
			+ RISK + "ss";

	/**
	 * 系统中的短时间格式
	 */
	public static final String SYSTEM_SHORT_TIME_FORMAT = "HH" + RISK + "mm";

	/**
	 * 系统名称
	 */
	public static final String SYSTEM_NAME = "Wilmar Base Platform";

	/**
	 * 系统默认采用的前台分页的最大数量
	 */
	public static final int SYSTEM_DEFAULT_PAGEINATION_LIMIT = 500;

	/**
	 * 系统默认采用的编码集
	 */
	public static final String SYSTEM_DEFAULT_CODE_SET = "UTF-8";

	/**
	 * 不等于号常量
	 */
	public static final String NOTEQUAL = "!=";

	/**
	 * 系统使用的关于内容中变量的前缀
	 */
	public static final String SYSTEM_CONTENT_VARIABLE_PREFIX = "${";

	/**
	 * 系统使用的关于内容中变量的后缀
	 */
	public static final String SYSTEM_CONTENT_VARIABLE_SUFFIX = "}";

	/**
	 * 系统使用的默认脚本语言
	 */
	public static final String DEFAULT_SYSTEM_SCRIPT_LANGUAGE = "juel";

	/**
	 * html代码中的空格常量
	 */
	public static final String HTML_SPACE = "&nbsp;";

	/**
	 * html代码中的换行常量
	 */
	public static final String HTML_LINE_BREAK = "<br/>";

	/**
	 * 默认系统数据库使用的主键生成器的名字:HIBERNATE_SEQUENCE
	 */
	public static final String DEFAULT_SYSTEM_DB_SEQUENCE = "HIBERNATE_SEQUENCE";

}
